import request from '@/utils/request'

// 查询公告类型列表
export function listMessagetype(query) {
  return request({
    url: '/sysmanagement/messagetype/list',
    method: 'get',
    params: query
  })
}

// 查询公告类型详细
export function getMessagetype(id) {
  return request({
    url: '/sysmanagement/messagetype/' + id,
    method: 'get'
  })
}

// 新增公告类型
export function addMessagetype(data) {
  return request({
    url: '/sysmanagement/messagetype',
    method: 'post',
    data: data
  })
}

// 修改公告类型
export function updateMessagetype(data) {
  return request({
    url: '/sysmanagement/messagetype',
    method: 'put',
    data: data
  })
}

// 删除公告类型
export function delMessagetype(id) {
  return request({
    url: '/sysmanagement/messagetype/' + id,
    method: 'delete'
  })
}
